﻿// Platform.cs

[DisplayName("平台管理模块")]
public class Platform : EntityBase
{
    [Required]
    [Key]
    [MaxLength(50)]
    [DisplayName("平台ID")]
    public string PlatformId { get; set; }

    [Required]
    [MaxLength(100)]
    [DisplayName("平台名称")]
    public string PlatformName { get; set; }

    [MaxLength(255)]
    [DisplayName("平台显示名称")]
    public string DisplayName { get; set; }

    [DisplayName("平台配置")]
    public string ApiConfig { get; set; }

    [DisplayName("平台图标")]
    public string IconUrl { get; set; }

    [Required]
    [DisplayName("平台状态")]
    public PlatformStatus Status { get; set; } = PlatformStatus.Active;
}

public enum PlatformStatus
{
    Active = 1,
    Inactive = 0,
    Maintenance = 2
}